/*
 * AgentTitleListItem.java
 * business
 *
 * Created by SunDing on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.displaylistitem;

import android.content.Context;

import com.yidiandao.business.data.bean.Shop;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.viewholder.AgentTitleHolder;
import com.yidiandao.business.utils.ImageLoader;

/** 我是代理商 酒行 */
public class AgentTitleListItem extends DisplayListItem<AgentTitleHolder, Shop> {

    public AgentTitleListItem(Shop s) {
        super(s);
    }

    @Override
    public void onShow(Context context, AgentTitleHolder holder) {
        ImageLoader.loadShopLogo(context, holder.mIvAgentLogo, data.getShopLogo());
        holder.mTvAgentName.setText(data.getSupplierName());
    }

    @Override
    public String getDisplayItemTag() {
        return AgentTitleListItem.class.getSimpleName();
    }

    @Override
    public Class<AgentTitleHolder> getViewHolderClazz() {
        return AgentTitleHolder.class;
    }
}
